@import "./mixin";
img {
  width: 100%;
  height: 100%;
  vertical-align: middle;
}

input {
  outline: none;
  box-sizing: border-box;
  font-size: 14px;
}
.fl {
  float: left;
}
.fr {
  float: right;
}
.logoArea {
  width: 55px;
  height: 55px; /*自己的位置与大小*/

  background-color: #ff6700;
  position: relative;
  overflow: hidden;
  a {
    display: block;

    @include position();
    /* background-image: url(img/mi-logo.png) */

    transition: left 0.3s; /*过渡*/
    &.home {
      left: -55px; /*设定定位*/
      top: 0;

      @include bgImg(55px, 55px, '../../assets/mi-home.png', 55px);
    }

    &.mi {
      top: 0; /*设定定位*/
      left: 0;

      @include bgImg(55px, 55px, '../../assets/mi-logo.png', 55px);
    }
  }

  &:hover .mi {
    left: 55px; /*设定定位*/
  }
  &:hover .home {
    left: 0; /*设定定位*/
  }
}
// 公共logo
.header-logo {
  vertical-align: middle;
  display: inline-block;
  width: 55px;
  height: 55px;
  background-color: #ff6600;
  a {
    display: inline-block;
    width: 110px;
    height: 55px;
    &:before {
      content: ' ';
       @include bgImg(55px, 55px, '../../assets/mi-home.png', 55px);
      transition: margin 0.2s;
    }
    &:after {
      content: ' ';
       @include bgImg(55px, 55px, '../../assets/mi-logo.png', 55px);
    }
    &:hover:before {
      margin-left: -55px;
      transition: margin 0.2s;
    }
  }
}
